package com.managerConsummer.service;

import entity.Provider;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * The interface Provider service feign.
 *
 * @author tapoliuliyue
 * @date 2022/04/23
 */
@FeignClient(name = "mp-p")
public interface ProviderServiceFeign {
    /**
     * Select all provider string.
     *
     * @param provider the provider
     * @return the string
     */
    @RequestMapping("/provider/selectAllProvider")
    @ResponseBody
    String selectAllProvider(@RequestBody Provider provider);

    /**
     * Insert provider string.
     *
     * @param provider the provider
     * @return the string
     */
    @RequestMapping("/provider/insertProvider")
    @ResponseBody
    String insertProvider(@RequestBody Provider provider);

    /**
     * Update provider string.
     *
     * @param provider the provider
     * @return the string
     */
    @RequestMapping("/provider/updateProvider")
    @ResponseBody
    String updateProvider(@RequestBody Provider provider);
}
